#include<reg52.h>
#include <Max1508.H>

void Max1508_init()
{
	EWATER = POWEROFF;
	EWIND  =  POWEROFF;
}


void Waterpower(){
	EWATER = POWEROFF;
	EWIND  =  POWERON;
}

void Windpower()
{
   	EWATER = POWERON;
	EWIND  = POWEROFF;
}

void Allpoweroff()
{
   	EWATER = POWEROFF;
	EWIND  = POWEROFF;
}

void Allpoweron()
{
   	EWATER = POWERON;
	EWIND  = POWERON;
}